﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>紧急求购-三帝贸易网</title>
<link href="../css/body.css" rel="stylesheet" type="text/css" />
<link href="../css/head_2.css" rel="stylesheet" type="text/css" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="../css/foot.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("../inc/head_top.php")?>
<div class="top1 topside6">
<div style="float:left;width:388px;"><a href="/"><img src="../images/logo.gif" width="388" height="58" border="0"/></a></div>
<div class="onl"></div>
</div>
<div class="onl"></div>
<form method="post" action="tijiao.php" onsubmit="return checkform()" name="form1">
  <div id="mian" class="topside6 sideyellow1">
    <div class="content size14">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="side">
    <tr>
      <td height="89" background="images/back.gif" style="line-height:20px; padding-left:15px;font-size: 14px;">
	  <strong class="fontred">紧急求购</strong><br />
　　为了节省您的时间，您在求购过程中没找到合适产品或供应商，请发布紧急求购产品信息。让商家联系您。</td>
      </tr>
  </table>
  
  <br />
  <div class="title2 b">请填写以下详细信息</div>
  <br />
  <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tbody>
      <tr>
        <td width="21%" align="right" ><span class="text">求购产品标题<span class="fontred"> *</span></span></td>
        <td><input name="s_title" class="input"  size="35" maxlength="200" /></td>
        </tr>
      <tr>
        <td width="21%" height="80" align="right" >求购产品描述<span class="fontred"> *</span></td>
        <td><textarea name="s_con" cols="60" rows="8" class="inpcon" value='请注意：发布供应信息的将被删除，谢谢合作！' onFocus="this.value=''">请注意：发布供应信息的将被删除，谢谢合作！</textarea></td>
      </tr>
	  <tr>
	  	<td></td><td>发布供应信息 <a href="http://www.sandib2b.cn/join/" target="_blank">免费注册</a></td>
	  </tr>
      <tr>
        <td align="right"><span class="text">联系人</span><span class="fontred"> *</span></td>
        <td width="79%"><input name="s_people" class="input1" id="s_people" size="35" maxlength="10" /></td>
        </tr>
      <tr>
        <td width="21%" align="right" ><span class="text">固定电话</span></td>
        <td><p>
          <input name="s_tel" class="input" id="s_tel" size="35" maxlength="40" />
          如：010-88888888（请加区号）
        </p>          </td>
        </tr>
      
      <tr>
        <td width="21%" align="right" ><span class="text">手机&nbsp;&nbsp;&nbsp;</span></td>
        <td ><input name="s_mobile" class="input" id="s_mobile" size="35" maxlength="25" /> 
          &nbsp;手机和固话必添写一个。</td>
        </tr>
      <tr>
        <td align="right" ><span class="text">电子邮箱&nbsp;&nbsp;&nbsp;</span></td>
        <td ><input name="s_mail" class="input" id="s_mail" size="35" maxlength="100" /></td>
        </tr>
      
      <tr>
        <td width="21%" align="right" ><span class="text">Q Q&nbsp;&nbsp;&nbsp;</span></td>
        <td ><input name="s_qq" class="input" id="s_qq" size="35" maxlength="20" /></td>
        </tr>
      <tr><input type="hidden" name="act" value="sandi" />
        <td align="right" >验证码<span class="fontred"> *</span></td>
        <td colspan="2" ><input name="c_code" class="input2" id="c_code" size="8" maxlength="6" />&nbsp;<img src="/inc/chk_num.php" name="img" height="25" align="absmiddle" id="img"/>&nbsp;<a href="#" name="test" id="test">看不清楚？</a></td>
        </tr>
    </tbody>
  </table>
  <br />
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td colspan="3" align="center" ><div class="content">  <span class="fontgreen"><a 
class="news_trade" href="/about/fuwu.php" 
target="_blank"></a></span>
          <input name="Submit" type="submit" class="inputbutt" value="提交信息" />
          <br />
        </div></td>
      </tr>
    </tbody>
  </table>
</div>
</div>
</form>
<?php include("../inc/foot.php");?>
</body>
</html>
<script language="javascript">
function $(id){
return document.getElementById(id);
}
function checkform(){

if($("s_title").value==""){
alert("求购产品名称不能为空");
$("s_title").focus();
return false;
}

if($("s_con").value=="" || $("s_con").value=="请注意：发布供应信息的将被删除，谢谢合作！"){
alert("求购产品描述必须输入");

$("s_con").focus();
return false;
}


if($("s_people").value==""){
alert("请输入您的真实姓名");
$("s_people").focus();
return false;
}

if($("s_tel").value=="" && $("s_mobile").value=="")
{
	alert("固定电话或者手机必须填写一项");
$("s_tel").focus();
return false;
}

if($("c_code").value.length==""){
  alert("请输入您的验证码");
  $("c_code").focus();
  return false;
}

}

function unisch(String) 
{ 
	var Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-"; 
	var i; 
	var c; 
	for( i = 0; i < String.length; i ++ ) 
	{ 
		c = String.charAt( i ); 
		if (Letters.indexOf( c ) ==-1) 
		{ 
			return true; 
		} 
	} 
	return false; 
} 

function test(img){
    var src=img.getAttribute("src");
    src=src+"?new="+Math.random(0,10);
    img.setAttribute("src",src);
}
function prepare(){
    var nav=document.getElementById("test");
    var name=nav.getAttribute("name");
    var str="test";
    if(name==str){
        nav.onclick=function(){
            var img=document.getElementById("img");
            test(img);
            return false;
        }
    }
}
window.onload=prepare;
</script>